package com.hxzy.controller.admin.merchandiser.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Getter
@Setter
@ApiModel(value = "更新密码")
public class MerchandiserChangePwdReq {

    @NotBlank(message = "新密码不能为空")
    @Length(min = 4,max = 20,message = "新密码长度必须在4-20之间")
    @ApiModelProperty(value = "新密码")
    private String newPwd;

    @NotBlank(message = "确认密码")
    @Length(min = 4,max =20,message = "确认密码长度必须在4-20之间")
    @ApiModelProperty(value = "确认密码")
    private String rePwd;
}
